package day02_oop_code.com.itheima.d2_polymorphism;

public class Test {
    public static void main(String[] args) {
        Animal a = new Dog();
        a.cry();

        Cat c = new Cat();
        go(c);

        Dog d = new Dog();
        go(d);

        System.out.println("-------------------");
//        a.l

    }
    public static void go(Animal a) {
        System.out.println("start...");

        a.cry();

        System.out.println("end...");
    }
}
